//个人资料
import { PROFILE } from './api';
import { request, METHOD } from '@/utils/request';
//修改个人信息
export async function editProfile(params) {
  return request(PROFILE + '/edit', METHOD.POST, params);
}
//获取个人信息
export async function getProfile(id) {
  return request(PROFILE + '/get/', METHOD.DYNAMIC, id);
}
//修改密码
export async function resetProfile(params) {
  return request(PROFILE + '/reset', METHOD.POST, params);
}
export default {
  editProfile,
  getProfile,
  resetProfile,
};
